Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v9: Update cypress to newest version and fix errors #11486

Merged
merged 14 commits into from
Oct 26, 2021

Conversation

Zeegaan
Copy link
Member

@Zeegaan Zeegaan commented Oct 25, 2021

Notes

  • Updated cypress to 8.6.0
  • Fixed Scripts & Stylesheets, we were going to fast so worker was throwing network errors.

How to test

  • Run a clean install of umbraco
  • Go to Umbraco.Tests.AcceptanceTests and run npm install & npm run test
  • All tests should pass

@Zeegaan Zeegaan requested a review from bergmania October 25, 2021 13:19
@@ -18,7 +18,8 @@ context('Stylesheets', () => {

cy.umbracoContextMenuAction("action-create").click();
cy.get('.menu-label').first().click(); // TODO: Fucked we cant use something like cy.umbracoContextMenuAction("action-mediaType").click();

//We have to wait here till everything is loaded, or worker will throw error
cy.wait(500);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of magic number, is there something to wait on on e.g. cy.get('.ace_text-input') (default timeout 4 seconds)

Copy link
Member Author

@Zeegaan Zeegaan Oct 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea I agree that a magic number is not optimal, will try find something better to wait on 👍 I'll do some detective work 🕵️

Copy link
Contributor

@p-m-j p-m-j Oct 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about cy.get('.ace_text-input') :p

Or cy.get('input[data-element="editor-name-field"]'); which is probably more relevant for the test.

Base automatically changed from v9/bugfix/fix_flaky_cypress_test to v9/dev October 26, 2021 13:01
# Conflicts:
#	tests/Umbraco.Tests.AcceptanceTest/cypress/integration/Content/content.ts
@p-m-j p-m-j merged commit e9ae567 into v9/dev Oct 26, 2021
@p-m-j p-m-j deleted the v9/bugfix/update-cypress-to-8.6.0 branch October 26, 2021 14:03
nul800sebastiaan pushed a commit that referenced this pull request Nov 3, 2021
* fixed flaky macro test and updated cypress version

* fixed flaky macro test and updated cypress version

* Update package.json

* Updated cypress to 8.6 and fixed failing script test

* Updated cypress to 8.6 and fixed failing script test

* Update package-lock.json

* Fixed Scripts and stylesheet tests with proper waits instead of magic numbers

* Updated to newest version of cypress and fixed template test

* Remove duplicate click

* Revert version to 8.4.1

* changed template

Co-authored-by: Nikolaj Geisle <[email protected]>
(cherry picked from commit e9ae567)

# Conflicts:
#	src/Umbraco.Tests.AcceptanceTest/package.json
#	tests/Umbraco.Tests.AcceptanceTest/package-lock.json
nul800sebastiaan pushed a commit that referenced this pull request Nov 3, 2021
* fixed flaky macro test and updated cypress version

* fixed flaky macro test and updated cypress version

* Update package.json

* Updated cypress to 8.6 and fixed failing script test

* Updated cypress to 8.6 and fixed failing script test

* Update package-lock.json

* Fixed Scripts and stylesheet tests with proper waits instead of magic numbers

* Updated to newest version of cypress and fixed template test

* Remove duplicate click

* Revert version to 8.4.1

* changed template

Co-authored-by: Nikolaj Geisle <[email protected]>
(cherry picked from commit e9ae567)

# Conflicts:
#	src/Umbraco.Tests.AcceptanceTest/package.json
#	tests/Umbraco.Tests.AcceptanceTest/package-lock.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants